package cn.source.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.source.system.mapper.SchoolMajorYearAdmissionDetailMapper;
import cn.source.system.domain.SchoolMajorYearAdmissionDetail;
import cn.source.system.service.ISchoolMajorYearAdmissionDetailService;

/**
 * 年度学校各专业录取分数详情Service业务层处理
 * 
 * @author sourcebyte.vip
 * @date 2024-02-20
 */
@Service
public class SchoolMajorYearAdmissionDetailServiceImpl implements ISchoolMajorYearAdmissionDetailService 
{
    @Autowired
    private SchoolMajorYearAdmissionDetailMapper schoolMajorYearAdmissionDetailMapper;

    /**
     * 查询年度学校各专业录取分数详情
     * 
     * @param id 年度学校各专业录取分数详情主键
     * @return 年度学校各专业录取分数详情
     */
    @Override
    public SchoolMajorYearAdmissionDetail selectSchoolMajorYearAdmissionDetailById(Long id)
    {
        return schoolMajorYearAdmissionDetailMapper.selectSchoolMajorYearAdmissionDetailById(id);
    }

    /**
     * 查询年度学校各专业录取分数详情列表
     * 
     * @param schoolMajorYearAdmissionDetail 年度学校各专业录取分数详情
     * @return 年度学校各专业录取分数详情
     */
    @Override
    public List<SchoolMajorYearAdmissionDetail> selectSchoolMajorYearAdmissionDetailList(SchoolMajorYearAdmissionDetail schoolMajorYearAdmissionDetail)
    {
        return schoolMajorYearAdmissionDetailMapper.selectSchoolMajorYearAdmissionDetailList(schoolMajorYearAdmissionDetail);
    }

    /**
     * 新增年度学校各专业录取分数详情
     * 
     * @param schoolMajorYearAdmissionDetail 年度学校各专业录取分数详情
     * @return 结果
     */
    @Override
    public int insertSchoolMajorYearAdmissionDetail(SchoolMajorYearAdmissionDetail schoolMajorYearAdmissionDetail)
    {
        return schoolMajorYearAdmissionDetailMapper.insertSchoolMajorYearAdmissionDetail(schoolMajorYearAdmissionDetail);
    }

    /**
     * 修改年度学校各专业录取分数详情
     * 
     * @param schoolMajorYearAdmissionDetail 年度学校各专业录取分数详情
     * @return 结果
     */
    @Override
    public int updateSchoolMajorYearAdmissionDetail(SchoolMajorYearAdmissionDetail schoolMajorYearAdmissionDetail)
    {
        return schoolMajorYearAdmissionDetailMapper.updateSchoolMajorYearAdmissionDetail(schoolMajorYearAdmissionDetail);
    }

    /**
     * 批量删除年度学校各专业录取分数详情
     * 
     * @param ids 需要删除的年度学校各专业录取分数详情主键
     * @return 结果
     */
    @Override
    public int deleteSchoolMajorYearAdmissionDetailByIds(Long[] ids)
    {
        return schoolMajorYearAdmissionDetailMapper.deleteSchoolMajorYearAdmissionDetailByIds(ids);
    }

    /**
     * 删除年度学校各专业录取分数详情信息
     * 
     * @param id 年度学校各专业录取分数详情主键
     * @return 结果
     */
    @Override
    public int deleteSchoolMajorYearAdmissionDetailById(Long id)
    {
        return schoolMajorYearAdmissionDetailMapper.deleteSchoolMajorYearAdmissionDetailById(id);
    }
}
